def func(s):
    al_num = 0
    space_num = 0
    digit_num = 0
    others_num = 0
    for i in s:
        if i.isdigit():
            digit_num += 1
        elif i.isspace():
            space_num += 1
        elif i.isalpha():
            al_num += 1
        else:
            others_num += 1
    return(al_num,space_num,digit_num,others_num)
result=func("nsafuhshar8328r234098903109080aihd217fhiosxa部分看不见罢诉好哇")
print(result)

